package com.zhangxin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "client.oauth2")
public class ClientOAuth2DataConfiguration {
    // 客户端标志ID
    private String clientId;

    // 客户端安全密码
    private String secret;

    // 授权类型
    private String[] grantType;

    // token 有效期
    private int tokenValidityTime;

    // refresh-token 有效期
    private int refreshTokenValidityTime;

    // 客户端访问范围
    private String[] scopes;
}
